package com.elot.dto;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import org.springframework.stereotype.Component;

import com.google.appengine.api.datastore.Key;

@Component
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PrivateMessageDto {

	private Key id;
	
	private UserDto userSend;
	private UserDto userRecived;
	
	private LotDto lot;
	private String message;
	
	private Boolean read;
	private Boolean reply;
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	public Key getId() {
		return id;
	}
	public void setId(Key id) {
		this.id = id;
	}
	
	public PrivateMessageDto() {
	}
	
	@Persistent
	public UserDto getUserSend() {
		return userSend;
	}
	public void setUserSend(UserDto userSend) {
		this.userSend = userSend;
	}
	@Persistent
	public UserDto getUserRecived() {
		return userRecived;
	}
	public void setUserRecived(UserDto userRecived) {
		this.userRecived = userRecived;
	}
	@Persistent
	public LotDto getLot() {
		return lot;
	}
	public void setLot(LotDto lot) {
		this.lot = lot;
	}
	@Persistent
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	@Persistent
	public Boolean getRead() {
		return read;
	}
	public void setRead(Boolean read) {
		this.read = read;
	}
	@Persistent
	public Boolean getReply() {
		return reply;
	}
	public void setReply(Boolean reply) {
		this.reply = reply;
	}
	
}
